Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@appium/logger

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@appium/logger

A Universal Logger For The Appium Ecosystem

  • 1.6.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
249K
increased by9.8%
Maintainers
4
Weekly downloads
 
Created

What is @appium/logger?

@appium/logger is a logging utility designed for use with Appium, a popular open-source tool for automating mobile applications. It provides a simple and consistent way to log messages, errors, and other information, making it easier to debug and maintain Appium scripts.

What are @appium/logger's main functionalities?

Basic Logging

This feature allows you to log messages at different levels (info, warn, error). The logger can be customized with different log levels to control the verbosity of the output.

const log = require('@appium/logger').getLogger('example');
log.info('This is an info message');
log.warn('This is a warning message');
log.error('This is an error message');

Custom Logger Configuration

This feature allows you to configure the logger with custom settings, such as log level and transports. In this example, the logger is configured to use the 'debug' level and output to the console with a simple format.

const { getLogger, configure } = require('@appium/logger');
configure({
  level: 'debug',
  transports: [
    new (require('winston')).transports.Console({
      format: require('winston').format.simple()
    })
  ]
});
const log = getLogger('custom');
log.debug('This is a debug message');

Child Loggers

This feature allows you to create child loggers that inherit settings from a parent logger. This is useful for organizing logs from different parts of an application.

const log = require('@appium/logger').getLogger('parent');
const childLog = log.child({ module: 'child' });
childLog.info('This is a message from the child logger');

Other packages similar to @appium/logger

Keywords

FAQs

Package last updated on 07 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc